package com.zjw.zy.componse.demo

import android.os.Bundle
import androidx.fragment.app.FragmentActivity
import androidx.navigation.findNavController
import com.zjw.zy.componse.demo.manager.PageManager

const val EVENT_CLICK = 1


/**
 * 空壳Activity，主要使用Fragment_ComposeUi开发
 *
 * 项目架构 MVVM
 * ViewModel + (Flow || State)[弃用 LiveData] + Fragment(ComposeUi)
 * 纯Kotlin开发
 * */
class MainActivity : FragmentActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.main_activity)

        PageManager.init(this)
    }

    override fun onBackPressed() {
        PageManager.topFragment?.onBackPress()
    }

}

